<!--<?php print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$headtitle}</title>
{$headmeta}
{$cache_settings['headcontent']}
<link href="{$_SYS['TP']}/css.php?t=templatecss&s={$_SYS['styleid']}&v={$_SYS['VERSION']}&f=global" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
	<table class="header_table"><tr>
	<td class="header_tableleft"><a href="{$_SYS['indexurl']}" class="logolink"></a></td>
	<td class="header_tableright">
<div class="topad">{$adcode[1]}</div>
<table class="menu">
<td class="leftmenu">
<!--
EOT;
if(isLogin()){
print <<<EOT
-->
<a href="{$_SYS['indexurl']}">返回首页</a>|<a href="member.php">欢迎您: {$lg['displayname']}</a>|<a href="member.php">个人中心</a>|<a href="logout.php">退出</a>
<!--
EOT;
	if($lg['groupid']==GROUP_ADMIN){
print <<<EOT
-->
|<a href="admin" target="_blank">后台管理</a>
<!--
EOT;
	}
}else{
print <<<EOT
-->
<a href="{$_SYS['indexurl']}">返回首页</a>|<a href="login.php">会员登录</a>|<a href="{$cache_settings['signupfilename']}">会员注册</a>
<!--
EOT;
}
print <<<EOT
-->
</td>
<td class="rightmenu_1"></td>
<td class="rightmenu">
		<ul>
		<li><a href="search.php?action=new">今日新帖</a></li><li><a href="search.php?action=good">精华帖子</a></li><li><a href="search.php">论坛搜索</a></li><li><a href="userlist.php">会员列表</a></li>
<!--
EOT;
if(!empty($cache_plugins)){
print <<<EOT
-->
	  <li><a href="#">插件
	   <!--[if IE 7]><!--></a><!--<![endif]-->
	   <!--[if lte IE 6]><table><tr><td><![endif]-->
	   <ul>
<!--
EOT;
foreach($cache_plugins as $tmp){
$pluginscode.=$tmp['code'];
print <<<EOT
-->
		<li><a href="{$tmp[link]}">{$tmp[name]}</a></li>
<!--
EOT;
}
print <<<EOT
-->
	   </ul>
	   <!--[if lte IE 6]></td></tr></table></a><![endif]-->
	  </li>
		<li class="dropmenu"></li>
<!--
EOT;
}
print <<<EOT
-->
	  <li><a href="#">模板<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
	   <ul>
<!--
EOT;
foreach($cache_template as $tmp){
print <<<EOT
-->
		<li><a href="index.php?styleid={$tmp['id']}" style="color:{$tmp['color1']}">{$tmp['name']}</a></li>
<!--
EOT;
}
print <<<EOT
-->
	   </ul>
	   <!--[if lte IE 6]></td></tr></table></a><![endif]-->
	  </li>
		<li class="dropmenu"></li>
      </ul>
</td>
<td class="rightmenu_2"></td>
</table>
	</td></tr></table>
</div>
{$pluginscode}
<!--body container BEGIN--><div class="body_container">
<!--
EOT;
?>
